package com.github.thinwonton.springboot.showcase.poi.apache;

/**
 * Utils
 *
 * @author hugo
 * @date 2018/9/18
 */
public class Utils {
    public static boolean isExcel2003(String filePath) {
        return filePath.matches("^.+\\.(?i)(xls)$");
    }

    public static boolean isExcel2007(String filePath) {
        return filePath.matches("^.+\\.(?i)(xlsx)$");
    }
}
